#include "sqlconnpool_C.h"
#include "sqlconnpool.h"


extern void ConnPool_Init(const char* host, int port, const char* user, const char* pwd, const char* dbName, int connSize)
{
    SqlConnPool::getInstance()->Init(host, port, user, pwd, dbName, connSize);
}

extern MYSQL* GetConn()
{
    return SqlConnPool::getInstance()->GetConn();
}

extern void FreeConn(MYSQL* conn)
{
    SqlConnPool::getInstance()->FreeConn(conn);
}

extern void ClosePool()
{
    SqlConnPool::getInstance()->ClosePool();
}